import { defHttp } from '@/utils/http/axios';
import { type IpMetricsParams,type IpMetrics, type IpRiskMetricsParams,type IpRiskMetrics } from './model/ip';


enum Api {
  getCountryStatisticsList = '/analyze/ip4/metrics/getCountryStatisticsList',
  getRiskList = '/analyze/ip4/metrics/getRiskList',
}

export function getCountryStatisticsList(data: IpMetricsParams) {
  return defHttp.post<IpMetrics[]>({ url: Api.getCountryStatisticsList,data });
}
export function getRiskList(data: IpRiskMetricsParams) {
  return defHttp.post<IpRiskMetrics[]>({ url: Api.getRiskList,data });
}